package mvp.com.bbc.rcjavaretrofitdaggermvp.mvp.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.View;

import mvp.com.bbc.rcjavaretrofitdaggermvp.R;
import mvp.com.bbc.rcjavaretrofitdaggermvp.baseAF.BaseFragment;

/**
 * Created by ${cbf} on 2017/12/3.
 * 关注界面
 */

public class FouceFragment extends BaseFragment {
    @Override
    protected int setContentLayout() {
        return R.layout.item_test_activity;
    }

    @Override
    protected void findViews() {

    }

    @Override
    protected void init() {
        Bundle bundle = getArguments();
        String type = bundle.getString("type");
        if (type == null) {
            type = "1";
        }
        Log.v("cbf", "type--FouceFragment=" + type);
    }

    @Override
    protected void setListeners() {

    }

    @Override
    public void onClick(View view) {

    }

    public static Fragment newInstance(String type) {
        FouceFragment fouceFragmen = new FouceFragment();
        Bundle bundle = new Bundle();
        bundle.putString("type", type);
        fouceFragmen.setArguments(bundle);
        return fouceFragmen;
    }
}
